home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-08 | 9.7 KB | 309 lines | [SGPA/SCPG] |
- on Build -- New Wave Invoice
- global vHelvetica
-
- put measurements into tempMeasurements
- dodocsetup
- locatefonts
- newpublication pages 1 columns 0 PageWidth 612 PageHeight 792 pageorientation portrait topmargin 36 bottommargin 36 leftmargin 36 rightmargin 36
- set gridsettings to 18,18
- set displayinvisibles to false
- set facingpages to false
- set gridsnap to false
- set lockguides to false
- set magneticguides to true
- set printcoloroptions to false
- set printcolornames to true
- set printcutouts to true
- set printregistrationmarks to false
- set printmarksoptions to no
- set printpageoptions to all
- set printtypeoptions to publication
- set spotcolor 1 to 0,0,0
- set spotcolor 2 to 65535,65535,65535
- set spotcolor 3 to 62167,2134,34028
- set spotcolor 4 to 0,32768,4528
- set spotcolor 5 to 577,43860,60159
- set spotcolor 6 to 56683,2242,1698
- set spotcolor 7 to 0,0,54272
- set spotcolor 8 to 64512,62333,1327
- set linepattern to 1
- set fillpattern to 2
- set color to 1
- set framelinetype to 1
- set mousecursor to busy
- set mousecursor to busy
- goto rightbackground
- PublicationSetup columns 1
- set mousecursor to busy
- goto page 1
- -- •p1 1•
- draw rectangle 158,251,258,275
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,100,24
- -- •p1 2•
- draw Line 51,117,144,117
- set locked of last object to true
- -- •p1 3•
- draw Rectangle 30,36,140,106
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,110,70
- -- •p1 4•
- draw rectangle 48,122,152,285
- set locked of last object to true
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,104,163
- -- •p1 5•
- draw rectangle 156,129,199,154
- set locked of last object to true
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,43,25
- -- •p1 6•
- draw Line 160,117,282,117
- set locked of last object to true
- set framelinetype of last object to 4
- -- •p1 7•
- draw rectangle 158,82,431,116
- set locked of last object to true
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,273,34
- -- •p1 8•
- draw Line 49,290,575,290
- set locked of last object to true
- set framelinetype of last object to 2
- -- •p1 9•
- draw rectangle 49,325,576,685
- set locked of last object to true
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,527,360
- -- •p1 10•
- draw Line 46,684,576,684
- set locked of last object to true
- set framelinetype of last object to 4
- -- •p1 11•
- draw rectangle 49,693,245,716
- set locked of last object to true
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,196,23
- -- •p1 12•
- draw Line 159,270,575,270
- set locked of last object to true
- set framelinetype of last object to 2
- -- •p1 13•
- draw Line 118,290,118,682
- set locked of last object to true
- set framelinetype of last object to 12
- -- •p1 14•
- draw Line 405,290,405,682
- set locked of last object to true
- set framelinetype of last object to 12
- -- •p1 15•
- draw Line 504,291,504,685
- set locked of last object to true
- set framelinetype of last object to 12
- -- •p1 16•
- draw rectangle 156,161,219,184
- set locked of last object to true
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,63,23
- -- •p1 17•
- draw rectangle 446,251,525,273
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,79,22
- -- •p1 18•
- draw Line 158,249,574,249
- set locked of last object to true
- set framelinetype of last object to 3
- -- •p1 19•
- draw rectangle 310,251,410,275
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,100,24
- -- •p1 20•
- draw rectangle 405,685,449,705
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,44,20
- -- •p1 21•
- draw rectangle 405,701,440,721
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,35,20
- -- •p1 22•
- draw rectangle 405,718,502,738
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,97,20
- -- •p1 23•
- draw rectangle 404,738,443,759
- set locked of last object to true
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,39,21
- -- •p1 24•
- draw rectangle 49,291,118,318
- set locked of last object to true
- set framelinetype of last object to 2
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,69,27
- -- •p1 25•
- draw rectangle 124,291,193,318
- set locked of last object to true
- set framelinetype of last object to 2
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,69,27
- -- •p1 26•
- draw rectangle 407,291,476,318
- set locked of last object to true
- set framelinetype of last object to 2
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,69,27
- -- •p1 27•
- draw rectangle 507,291,576,318
- set locked of last object to true
- set framelinetype of last object to 2
- set fillpattern of last object to 0
- set linepattern of last object to 0
- set croprectangle of last object to 0,0,69,27
- PublicationSetup columns 1
- progressdialog show "Creating text…"
- set the mousecursor to busy
- link page objects 1,1 to story "autostory1"
- put "Invoice Number" into story "autostory1"
- select all text in story "autostory1"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,4 to story "Address"
- put " " into story "Address"
- select all text in story "Address"
- textsetup vHelvetica "italic" 10 left
- set the mousecursor to busy
- link page objects 1,5 to story "autostory3"
- put "Date:" into story "autostory3"
- select all text in story "autostory3"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,7 to story "autostory4"
- put "Invoice" into story "autostory4"
- select all text in story "autostory4"
- textsetup vHelvetica "bold,italic" 18 left
- set the mousecursor to busy
- link page objects 1,9 to story "autostory5"
- put " " into story "autostory5"
- select all text in story "autostory5"
- textsetup vHelvetica "plain" 9 left
- set the mousecursor to busy
- link page objects 1,11 to story "autostory6"
- put "Terms:" into story "autostory6"
- select all text in story "autostory6"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,16 to story "autostory7"
- put "To:" into story "autostory7"
- select all text in story "autostory7"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,17 to story "autostory8"
- put "Date Shipped" into story "autostory8"
- select all text in story "autostory8"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,19 to story "autostory9"
- put "P.O. Number" into story "autostory9"
- select all text in story "autostory9"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,20 to story "autostory10"
- put "Subtotal" into story "autostory10"
- select all text in story "autostory10"
- textsetup vHelvetica "italic" 10 left
- set the mousecursor to busy
- link page objects 1,21 to story "autostory11"
- put "Tax" into story "autostory11"
- select all text in story "autostory11"
- textsetup vHelvetica "italic" 10 left
- set the mousecursor to busy
- link page objects 1,22 to story "autostory12"
- put "Shipping & Handling" into story "autostory12"
- select all text in story "autostory12"
- textsetup vHelvetica "italic" 10 left
- set the mousecursor to busy
- link page objects 1,23 to story "autostory13"
- put "Total" into story "autostory13"
- select all text in story "autostory13"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,24 to story "autostory14"
- put "Quantity" into story "autostory14"
- select all text in story "autostory14"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,25 to story "autostory15"
- put "Description" into story "autostory15"
- select all text in story "autostory15"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,26 to story "autostory16"
- put "Unit Price" into story "autostory16"
- select all text in story "autostory16"
- textsetup vHelvetica "bold,italic" 10 left
- set the mousecursor to busy
- link page objects 1,27 to story "autostory17"
- put "Extension" into story "autostory17"
- select all text in story "autostory17"
- textsetup vHelvetica "bold,italic" 10 left
- choose maintool
- progressdialog hide
- set measurements to tempMeasurements
- end Build
-
-
- on locatefonts
- global vHelvetica, vPalatino, vTimes, vNewYork, systemfonts
- put fontfamilies into systemfonts
- if systemfonts contains "New York" then put "New York" into vNewYork
- else put "Geneva" into vNewYork
- if systemfonts contains "Helvetica" then put "Helvetica" into vHelvetica
- else put "Geneva" into vHelvetica
- if systemfonts contains "Times" then put "Times" into vTimes
- else put vNewYork into vTimes
- if systemfonts contains "Palatino" then put "Palatino" into vPalatino
- else put vTimes into vPalatino
-
- end locatefonts
-
- on dodocsetup
- set lockscreen to true
- Set ShuffleTextObjects to false
- set measurements to points
- set displayguides to false
- set view to actual
- set itemdel to ","
- set worddel to space
- set linedel to cr
- set saveglobals to true
- progressdialog open
- progressdialog show "Creating publication"
- end dodocsetup
-
- on textsetup thefont, theface, thesize, thejust
- global vHelvetica, vPalatino, vTimes, vNewYork
- set styleRecomposition to false
- set the textfont to thefont
- do "set the textface to "&theface
- set the textsize to thesize
- set the rulerjustification to thejust
- set styleRecomposition to true
- end textsetup
-